<?php

use think\facade\Route;

Route::rule("test", "index/hello", "get");

Route::rule("detail","detail/index","get")->middleware(\app\demo\middleware\Detail::class);